package com.dorm.cj.extension.async;

import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * 需要在启动类enableAsync
 */
@Service
public class TestAsyncService {

    @Async
    public void test() {
        System.out.println(Thread.currentThread().getName() + "=======TestAsyncService============");
    }
}
